package com.ruoyi.record.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.record.mapper.IncomeExpenseRecordMapper;
import com.ruoyi.record.domain.IncomeExpenseRecord;
import com.ruoyi.record.service.IIncomeExpenseRecordService;

/**
 * 账户概况Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-03
 */
@Service
public class IncomeExpenseRecordServiceImpl implements IIncomeExpenseRecordService 
{
    @Autowired
    private IncomeExpenseRecordMapper incomeExpenseRecordMapper;

    /**
     * 查询账户概况
     * 
     * @param id 账户概况主键
     * @return 账户概况
     */
    @Override
    public IncomeExpenseRecord selectIncomeExpenseRecordById(Long id)
    {
        return incomeExpenseRecordMapper.selectIncomeExpenseRecordById(id);
    }

    /**
     * 查询账户概况列表
     * 
     * @param incomeExpenseRecord 账户概况
     * @return 账户概况
     */
    @Override
    public List<IncomeExpenseRecord> selectIncomeExpenseRecordList(IncomeExpenseRecord incomeExpenseRecord)
    {
        return incomeExpenseRecordMapper.selectIncomeExpenseRecordList(incomeExpenseRecord);
    }

    /**
     * 新增账户概况
     * 
     * @param incomeExpenseRecord 账户概况
     * @return 结果
     */
    @Override
    public int insertIncomeExpenseRecord(IncomeExpenseRecord incomeExpenseRecord)
    {
        return incomeExpenseRecordMapper.insertIncomeExpenseRecord(incomeExpenseRecord);
    }

    /**
     * 修改账户概况
     * 
     * @param incomeExpenseRecord 账户概况
     * @return 结果
     */
    @Override
    public int updateIncomeExpenseRecord(IncomeExpenseRecord incomeExpenseRecord)
    {
        return incomeExpenseRecordMapper.updateIncomeExpenseRecord(incomeExpenseRecord);
    }

    /**
     * 批量删除账户概况
     * 
     * @param ids 需要删除的账户概况主键
     * @return 结果
     */
    @Override
    public int deleteIncomeExpenseRecordByIds(Long[] ids)
    {
        return incomeExpenseRecordMapper.deleteIncomeExpenseRecordByIds(ids);
    }

    /**
     * 删除账户概况信息
     * 
     * @param id 账户概况主键
     * @return 结果
     */
    @Override
    public int deleteIncomeExpenseRecordById(Long id)
    {
        return incomeExpenseRecordMapper.deleteIncomeExpenseRecordById(id);
    }
}
